package cn.operation.backend.bo.baseArea;

import java.io.Serializable;
import java.util.Date;

/**
 * @FileName: BaseAreaDTO
 * @Description: 区域数据
 * @author: Felix
 * @date: 2017/5/24.
 */
public class BaseParentAreaBo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;

	private String code;

	private String name;

	private String sname;

	private Integer parentId;

	private String parentName;

	private String path;

	private String status;

	private String level;

	private String pinyin;

	private String initialWords;

	private String comment;

	private Date gmtCreate;

	private Date gmtModified;

	private BaseParentAreaBo childArea;

	public Integer getId() {
		return id;
	}

	public BaseParentAreaBo setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getCode() {
		return code;
	}

	public BaseParentAreaBo setCode(String code) {
		this.code = code;
		return this;
	}

	public String getName() {
		return name;
	}

	public BaseParentAreaBo setName(String name) {
		this.name = name;
		return this;
	}

	public String getSname() {
		return sname;
	}

	public BaseParentAreaBo setSname(String sname) {
		this.sname = sname;
		return this;
	}

	/**
	 * @return the parentId
	 */
	public Integer getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getParentName() {
		return parentName;
	}

	public BaseParentAreaBo setParentName(String parentName) {
		this.parentName = parentName;
		return this;
	}

	public String getPath() {
		return path;
	}

	public BaseParentAreaBo setPath(String path) {
		this.path = path;
		return this;
	}

	public String getStatus() {
		return status;
	}

	public BaseParentAreaBo setStatus(String status) {
		this.status = status;
		return this;
	}

	public String getLevel() {
		return level;
	}

	public BaseParentAreaBo setLevel(String level) {
		this.level = level;
		return this;
	}

	public String getPinyin() {
		return pinyin;
	}

	public BaseParentAreaBo setPinyin(String pinyin) {
		this.pinyin = pinyin;
		return this;
	}

	public String getInitialWords() {
		return initialWords;
	}

	public BaseParentAreaBo setInitialWords(String initialWords) {
		this.initialWords = initialWords;
		return this;
	}

	public String getComment() {
		return comment;
	}

	public BaseParentAreaBo setComment(String comment) {
		this.comment = comment;
		return this;
	}

	/**
	 * @return the gmtCreate
	 */
	public Date getGmtCreate() {
		return gmtCreate;
	}

	/**
	 * @param gmtCreate
	 *            the gmtCreate to set
	 */
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	/**
	 * @return the gmtModified
	 */
	public Date getGmtModified() {
		return gmtModified;
	}

	/**
	 * @param gmtModified
	 *            the gmtModified to set
	 */
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}	

	public BaseParentAreaBo getChildArea() {
		return childArea;
	}

	public void setChildArea(BaseParentAreaBo childArea) {
		this.childArea = childArea;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("BaseParentAreaBo [id=");
		builder.append(id);
		builder.append(", code=");
		builder.append(code);
		builder.append(", name=");
		builder.append(name);
		builder.append(", sname=");
		builder.append(sname);
		builder.append(", parentId=");
		builder.append(parentId);
		builder.append(", parentName=");
		builder.append(parentName);
		builder.append(", path=");
		builder.append(path);
		builder.append(", status=");
		builder.append(status);
		builder.append(", level=");
		builder.append(level);
		builder.append(", pinyin=");
		builder.append(pinyin);
		builder.append(", initialWords=");
		builder.append(initialWords);
		builder.append(", comment=");
		builder.append(comment);
		builder.append(", gmtCreate=");
		builder.append(gmtCreate);
		builder.append(", gmtModified=");
		builder.append(gmtModified);
		builder.append(", childArea=");
		builder.append(childArea);
		builder.append("]");
		return builder.toString();
	}

}
